.message {
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
  line-height: 1.4;
  transition: background-color 0.2s ease;
}

.message:hover {
  background: rgba(255, 255, 255, 0.15);
}

.message.system {
  background: rgba(59, 130, 246, 0.15);
  font-style: italic;
  text-align: center;
  padding: 6px 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.message.system:hover {
  background: rgba(59, 130, 246, 0.2);
}

.message-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.player-name {
  font-weight: 600;
  color: #3b82f6;
  font-size: 13px;
}

.timestamp {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.message-content {
  color: rgba(255, 255, 255, 0.9);
  word-break: break-word;
}

/* Message styles for chat */

/* Markdown content styling */
.message.markdown .message-content {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, 
    "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
}

/* Headings */
.message.markdown .message-content h1,
.message.markdown .message-content h2,
.message.markdown .message-content h3,
.message.markdown .message-content h4,
.message.markdown .message-content h5,
.message.markdown .message-content h6 {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
  line-height: 1.25;
  color: #e0e7ff;
}

.message.markdown .message-content h1 {
  font-size: 1.5em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.3em;
}

.message.markdown .message-content h2 {
  font-size: 1.3em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.2em;
}

.message.markdown .message-content h3 {
  font-size: 1.15em;
}

.message.markdown .message-content h4 {
  font-size: 1.05em;
}

/* Lists */
.message.markdown .message-content ul,
.message.markdown .message-content ol {
  padding-left: 1.5em;
  margin: 0.5em 0;
}

.message.markdown .message-content li {
  margin: 0.25em 0;
}

.message.markdown .message-content li > ul,
.message.markdown .message-content li > ol {
  margin-top: 0;
  margin-bottom: 0;
}

/* Paragraphs */
.message.markdown .message-content p {
  margin: 0.5em 0;
}

/* Links */
.message.markdown .message-content a {
  color: #93c5fd;
  text-decoration: none;
  transition: color 0.2s ease;
}

.message.markdown .message-content a:hover {
  color: #bfdbfe;
  text-decoration: underline;
}

/* Blockquotes */
.message.markdown .message-content blockquote {
  border-left: 3px solid #6d28d9;
  margin: 0.5em 0;
  padding: 0.25em 1em;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 0 4px 4px 0;
}

/* Code blocks */
.message.markdown .message-content pre {
  border-radius: 4px;
  padding: 0.5em;
  margin: 0.5em 0;
  overflow-x: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 0.9em;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Inline code */
.message.markdown .message-content code {
  border-radius: 3px;
  padding: 0.2em 0.4em;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 0.9em;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tables */
.message.markdown .message-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.5em 0;
}

.message.markdown .message-content table th,
.message.markdown .message-content table td {
  padding: 0.4em 0.6em;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.message.markdown .message-content table th {
  font-weight: 600;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.message.markdown .message-content table tr:nth-child(odd) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Horizontal rule */
.message.markdown .message-content hr {
  height: 1px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  margin: 1em 0;
}

/* Images */
.message.markdown .message-content img {
  max-width: 100%;
  border-radius: 4px;
  margin: 0.5em 0;
}

/* Strong and emphasis */
.message.markdown .message-content strong {
  font-weight: 600;
  color: #e0e7ff;
}

.message.markdown .message-content em {
  font-style: italic;
  color: #d1d5db;
}

/* Mobile styles */
@media (max-width: 768px) {
  .message {
    padding: 6px 10px;
    font-size: 13px;
  }

  .message.system {
    font-size: 12px;
  }

  .player-name {
    font-size: 12px;
  }

  .timestamp {
    font-size: 10px;
  }

  .message.markdown .message-content h1 {
    font-size: 1.3em;
  }
  
  .message.markdown .message-content h2 {
    font-size: 1.2em;
  }
  
  .message.markdown .message-content h3 {
    font-size: 1.1em;
  }
  
  .message.markdown .message-content pre,
  .message.markdown .message-content code {
    font-size: 0.85em;
  }
}

.message.tool {
    background-color: rgba(70, 130, 180, 0.1);
    border-left: 3px solid steelblue;
    padding: 3px 6px;
    margin-bottom: 4px;
}

.message.tool .message-header {
    color: steelblue;
    margin-bottom: 2px;
}

.message.tool .player-name {
    font-size: 12px;
}

.tool-response-container {
} 